package com.yyaccp.appinfo.mapper;

import com.yyaccp.appinfo.domain.AppInfo;
import com.yyaccp.appinfo.domain.AppVersion;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AppInfoMapper {
    int deleteByPrimaryKey(Long id);

    int insert(AppInfo record);

    AppInfo selectByPrimaryKey(Long id);

    List<AppInfo> selectAll();

    int updateByPrimaryKey(AppInfo record);

    int selectAppInfoCount(AppInfo appInfo);

    List<AppInfo> selectAppInfoPage(@Param("appInfo") AppInfo appInfo,@Param("pageIndex")Integer pageIndex,@Param("pageSize")Integer pageSize);

    int updateStatusById(AppInfo appInfo);

    int add(AppInfo appInfo);

    int update(AppInfo appInfo);

    int updateVersion(AppVersion appVersion);

    int onSale(@Param("id")Long id);

    int offSale(@Param("id")Long id);
}